<?php
/** @var ActiveRecordLogController $this */
/** @var ActiveRecordLog $data */
?>
<div class="view">
                    
        <?php if (!empty($data->description)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('description')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->description); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->action)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('action')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->action); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->model)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('model')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->model); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->idModel)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('idModel')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->idModel); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->field)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('field')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->field); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->valor_actual)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('valor_actual')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->valor_actual); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->valor_nuevo)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('valor_nuevo')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->valor_nuevo); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->creationdate)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('creationdate')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->creationdate, 'medium', 'medium'); ?>
            <br/>
                 <?php echo date('D, d M y H:i:s', strtotime($data->creationdate)); ?>
                            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->userid)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('userid')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->userid); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->ip_user)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('ip_user')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->ip_user); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->observacion)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('observacion')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->observacion); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->archivo)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('archivo')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->archivo); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->dispositivo)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('dispositivo')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->dispositivo); ?>
            </div>
        </div>

        <?php endif; ?>
    </div>